<%@ page import = "java.util.ArrayList" import = "br.com.unieuro.dominio.Item" %>
<html>
<head>
	<title>Lista de Itens</title>
</head>
<%
ArrayList<Item> lista = (ArrayList<Item>)request.getSession().getAttribute("listaItens");
%>
<body>
<center>

<body background="/trabalho/jsp/fundo4.jpg" bgcolor="#00008B">
	<br />
    <br />
    <br />
    <span style="font-size: xx-large; font-style: normal; font-weight: bold; text-transform: capitalize; color: #CAE1FF">Itens Cadastrados</span>
    <br />
    <br />
    <br />
	<table border="1" title="Lista Itens">
			<tr>
				<td align=center>
					<span style="font-size: x-large; font-weight: bold; color: #CAE1FF">MATERIAL:</span>
				</td>		
				<td align=center>
					<span style="font-size: x-large; font-weight: bold; color:#CAE1FF">QDT:</span>
				</td>	
				<td align=center>
					<span style="font-size: x-large; font-weight: bold; color: #CAE1FF">VALOR:</span>
				</td>	
                <td align=center>
					<span style="font-size: x-large; font-weight: bold; color: #CAE1FF">DESCRICAO:</span>
				</td>	
			</tr>			
			<% for(Item i : lista){ %>
			<tr>
				<td>
					<span style="font-size: large; font-weight: bold; color: #CAE1FF"><%= i.getNome() %></span>
				</td>
				<td align=center>
					<span style="font-size: large; font-weight: bold; color: #CAE1FF"><%= i.getQtd() %></span>
				</td>
				<td align=center>
					<span style="font-size: large; font-weight: bold; color: #CAE1FF"><%= i.getValor() %></span>
				</td>
                <td align=center>
					<span style="font-size: large; font-weight: bold; color: #CAE1FF"><%= i.getDescricao() %></span>
				</td>
			</tr>
			<%} %>
		</table>
		<br></br>
        <br />
        <a href="/trabalho/jsp/cadastro.jsp" style="color:#CAE1FF" >Cadastrar Item</a>&nbsp;&nbsp;&nbsp;
        
        <a href="/trabalho/jsp/loginok.jsp" style="color:#CAE1FF">Principal</a>&nbsp;&nbsp;&nbsp;
        
        <a href="/trabalho/jsp/gerenciarItem.jsp" style="color:#CAE1FF">Gerenciar Item</a>
        </center>
	</body>
</html>